<ion-view view-title="企业宣传片">
	<div class="bar bar-subheader padding-0">
		<!--企业宣传片-->
		<div class="row font-large-my text-center">
			<div class="col borderRight_my" ng-class="{'assertive':input.status==1}" on-tap="init_data(1)">申请中</div>
			<div class="col borderRight_my" ng-class="{'assertive':input.status==2}" on-tap="init_data(2)">已通过</div>
			<div class="col borderRight_my" ng-class="{'assertive':input.status==3}" on-tap="init_data(3)">被拒绝</div>
			<div class="col" on-tap="onshow_publicity_apply()">申请</div>
		</div>
	</div>

	<ion-content class="has-subheader">
		<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
		<div ng-repeat="vedio in vediolist.advertis"><!--为了输出“clear_zhang”，将循环放在这里-->
			<div class="left-zhang margin-bottom-10 light-bg padding-5" style="width: 48.5%;" ng-class="{'col-offset-3':$index%2==1}">
				<img src="{{vedio.video_image}}" ng-if="vedio.video_image" on-tap="showVedio(vedio.id)" style="width: 100%;max-height: 6rem;"/>
				<img src="{{noImg}}" ng-if="vedio.video_image==''||vedio.video_image==null" on-tap="showVedio(vedio.id)" style="width: 100%;max-height: 6rem;"/>
				<p class="font-large-my text-align-my font-gray-my" style="height: 2rem;">{{vedio.video_name|limitTo:18}}<span ng-if="vedio.video_name.length>18">.....</span></p>
				<div class="assertive font-small-my">
				    &nbsp;
					<span class="right-zhang font-gray-my">{{vedio.apply_time*1000| date:'yyyy-MM-dd HH:mm:ss'}}</span>
				</div>
				<div class="font-small-my">
				    <span class="font-small-my">播放次数：</span><span class="assertive">{{vedio.view_count}}</span>
				    <span on-tap="delete(vedio.id,$index)" class="right-zhang"><i class="icon ion-ios-close-outline margin-left-10-my assertive"></i>&nbsp;删除</span>
					<span on-tap="onshow_publicity_apply(vedio.id)" class="right-zhang" ng-if="input.status==1||input.status==3" ><i class="icon ion-compose positive"></i>&nbsp;编辑</span>
				</div>
			</div>
			<div ng-class="{'clear_zhang':($index+1)%2==0}"></div>
		</div>

		<div class="font-large-my font-gray-my text-center padding" ng-if="vediolist.advertis.length==0||vediolist.advertis==null">
			<i class="icon ion-sad-outline font-1rem-my"></i> 对不起，没有符合条件的宣传片...
		</div>

		<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
	</ion-content>
</ion-view>